-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(sub v3): PAYG card #101203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
feat(sub v3): PAYG card #101203
Conversation
<Flex direction="column" gap="xl"> | ||
<Heading as="h2"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So nice ❤️
const Currency = styled('div')` | ||
&::before { | ||
position: absolute; | ||
padding: 9px ${p => p.theme.space.xl} ${p => p.theme.space.md}; | ||
content: '$'; | ||
color: ${p => p.theme.subText}; | ||
font-size: ${p => p.theme.fontSize.sm}; | ||
font-weight: bold; | ||
} | ||
`; | ||
|
||
const StyledInput = styled(Input)` | ||
padding-left: ${p => p.theme.space['3xl']}; | ||
font-weight: bold; | ||
`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I won't comment on the rest, but seeing a 500 line frontend PR with only two styled components is very nice to see :)
} | ||
|
||
return onDemandBudgets.onDemandSpendUsed ?? 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onClick={() => { | ||
if (isLegacy) { | ||
openOnDemandBudgetEditModal({organization, subscription, theme}); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
modern
legacy